package com.example.personalaccount.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ClauseDto {
    private boolean flag;  // 0为收入 1为支出
    private long userId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeStamp; // 时间
    private String detail;   // 详情
    private String remark;   // 备注
    private String func ;   //  方法
    private String originAccount ;  // 源账户 （默认为用户绑定的）
    private String destinationAccount;  // 目的账户
    private double amount;  // 金额
    private boolean status;
}
